package com.mzy.datepackage.M2022.Jan.twEight;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Vector;

/**
 * @author Ives
 * * @date 2022/1/28
 */
public class Demo {
  public static void main(String[] args) throws UnsupportedEncodingException {
    char[] chars = new char[]{'\uD83D','\uDE03'};
    System.out.println(new String(chars));
    System.out.println(Arrays.toString(new String(chars).getBytes("utf-8")));

    Vector<Object> objects = new Vector<>();

    String s= "abcdef";
    System.out.println(s.charAt(1));

    new Thread(new Runnable() {
      public void run() {
        System.out.println("Runnable's run method is running");
      }
    }){
      @Override
      public void run() {
        System.out.println("Thread's run method is running");
      }
    }.start();

    // 实际执行的是重写的run

  }



}
